using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Entities;
using DAL;
using BUS;
using Utility;
public partial class Admin_xoaha : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            int id = int.Parse(Request.QueryString["id"].ToString());
            tbHinhsanpham h = tbHinhsanphamBUS.GetByID(id);
            tbHinhsanphamBUS.Delete(id);
            Response.Redirect("danhsachsanpham.aspx");
        }
        catch
        {
            Response.Redirect("danhsachsanpham.aspx");
        }
    }
}
